<!--  -->
<template>
  <div class="page-exit">
    <h1>this is exit page</h1>
  </div>
</template>

<script>
export default {
  layout: "blank",
  middleware: async ctx => {
    console.log("进来了");
    let { status, data } = await ctx.$axios.get("/users/exit");
    if (status === 200 && data.code === 0) {
      console.log("应该去跳转");
      // window.location.herf = "/";
      this.$router.push("/");
      // ctx.$router.push("/");
    }
  }
};
</script>
<style lang='scss' scoped>
</style>
